<!doctype html>

<html>
<head>
<meta charset="utf-8">
<title>jQuery打印插件jqprint</title>
<script language="javascript" src="../../../../../static/jquery/jquery-1.8.3.js"></script>
<!-- 
如果您使用的是高版本jQuery调用下面jQuery迁移辅助插件即可
<script src="http://www.jq22.com/jquery/jquery-migrate-1.2.1.min.js"></script>
-->
<script language="javascript" src="../../../../../static/jquery/jquery.jqprint-0.3.js"></script>
  <OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0>
  </OBJECT>
<script language="javascript">

function aa(){
	$("#ddd").jqprint();
}

function printsetup(){
    // 打印页面设置
    wb.execwb(8,1);
    $("#ddd").exe
}
function printpreview(){
    // 打印页面预览 　　　　
    wb.execwb(7,1);
}
function printit()
{
    if (confirm('确定打印吗？')) {
        wb.execwb(6,6)
    }
}
</script>
</head>

<body>
<div id="ddd">
  <table>
    <tr>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
    </tr>
    <tr>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
    </tr>
    <tr>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
    </tr>
    <tr>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
    </tr>
    <tr>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
      <td>test</td>
    </tr>
  </table>
</div>
<input type="button" onclick="aa()" value="打印"/>
<input type=button class="Noprint" name=button_print value="打印" onclick="javascript:printit()"/>
<input type=button class="Noprint" name=button_setup value="打印页面设置" onclick="javascript:printsetup();"/>
<input type=button class="Noprint" name=button_show value="打印预览" onclick="javascript:printpreview();"/>
<input type=button class="Noprint" name=button_fh value="关闭" onclick="javascript:window.close();"/>
</body>
</html>
